3.5 \(\int x (a+b \text{csch}(c+d x^2)) \, dx\)

Optimal. Leaf size=26 \[ \frac{a x^2}{2}-\frac{b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d} \]

[Out]

(a*x^2)/2 - (b*ArcTanh[Cosh[c + d*x^2]])/(2*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0273907, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {14, 5437, 3770} \[ \frac{a x^2}{2}-\frac{b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d} \]

Antiderivative was successfully verified.

[In]

Int[x*(a + b*Csch[c + d*x^2]),x]

[Out]

(a*x^2)/2 - (b*ArcTanh[Cosh[c + d*x^2]])/(2*d)

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 5437

Int[((a_.) + Csch[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Csch[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IGtQ[Simplif
y[(m + 1)/n], 0] && IntegerQ[p]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int x \left (a+b \text{csch}\left (c+d x^2\right )\right ) \, dx &=\int \left (a x+b x \text{csch}\left (c+d x^2\right )\right ) \, dx\\ &=\frac{a x^2}{2}+b \int x \text{csch}\left (c+d x^2\right ) \, dx\\ &=\frac{a x^2}{2}+\frac{1}{2} b \operatorname{Subst}\left (\int \text{csch}(c+d x) \, dx,x,x^2\right )\\ &=\frac{a x^2}{2}-\frac{b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d}\\ \end{align*}

Mathematica [B]  time = 0.0340381, size = 57, normalized size = 2.19 \[ \frac{a x^2}{2}+\frac{b \log \left (\sinh \left (\frac{c}{2}+\frac{d x^2}{2}\right )\right )}{2 d}-\frac{b \log \left (\cosh \left (\frac{c}{2}+\frac{d x^2}{2}\right )\right )}{2 d} \]

Antiderivative was successfully verified.

[In]

Integrate[x*(a + b*Csch[c + d*x^2]),x]

[Out]

(a*x^2)/2 - (b*Log[Cosh[c/2 + (d*x^2)/2]])/(2*d) + (b*Log[Sinh[c/2 + (d*x^2)/2]])/(2*d)

________________________________________________________________________________________

Maple [A]  time = 0.01, size = 33, normalized size = 1.3 \begin{align*}{\frac{a{x}^{2}}{2}}+{\frac{b}{2\,d}\ln \left ( \tanh \left ({\frac{d{x}^{2}}{2}}+{\frac{c}{2}} \right ) \right ) }+{\frac{ac}{2\,d}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a+b*csch(d*x^2+c)),x)

[Out]

1/2*a*x^2+1/2/d*b*ln(tanh(1/2*d*x^2+1/2*c))+1/2/d*a*c

________________________________________________________________________________________

Maxima [A]  time = 1.24722, size = 34, normalized size = 1.31 \begin{align*} \frac{1}{2} \, a x^{2} + \frac{b \log \left (\tanh \left (\frac{1}{2} \, d x^{2} + \frac{1}{2} \, c\right )\right )}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*csch(d*x^2+c)),x, algorithm="maxima")

[Out]

1/2*a*x^2 + 1/2*b*log(tanh(1/2*d*x^2 + 1/2*c))/d

________________________________________________________________________________________

Fricas [B]  time = 1.69215, size = 150, normalized size = 5.77 \begin{align*} \frac{a d x^{2} - b \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) + 1\right ) + b \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) - 1\right )}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*csch(d*x^2+c)),x, algorithm="fricas")

[Out]

1/2*(a*d*x^2 - b*log(cosh(d*x^2 + c) + sinh(d*x^2 + c) + 1) + b*log(cosh(d*x^2 + c) + sinh(d*x^2 + c) - 1))/d

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x \left (a + b \operatorname{csch}{\left (c + d x^{2} \right )}\right )\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*csch(d*x**2+c)),x)

[Out]

Integral(x*(a + b*csch(c + d*x**2)), x)

________________________________________________________________________________________

Giac [B]  time = 1.15841, size = 66, normalized size = 2.54 \begin{align*} \frac{{\left (d x^{2} + c\right )} a}{2 \, d} - \frac{b \log \left (e^{\left (d x^{2} + c\right )} + 1\right )}{2 \, d} + \frac{b \log \left ({\left | e^{\left (d x^{2} + c\right )} - 1 \right |}\right )}{2 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*csch(d*x^2+c)),x, algorithm="giac")

[Out]

1/2*(d*x^2 + c)*a/d - 1/2*b*log(e^(d*x^2 + c) + 1)/d + 1/2*b*log(abs(e^(d*x^2 + c) - 1))/d